package job.practice.designpattern;

/**
 * Author: Zhang Dongwei
 * Date: 2023/8/27 10:29
 */
public class LazySingleton {
    private LazySingleton(){}

    private static LazySingleton lazySingleton = null;
    public static LazySingleton getInstance(){
        if (lazySingleton == null){
            lazySingleton = new LazySingleton();
        }
        return lazySingleton;
    }
}
